import {HttpPost} from "../tools/http"

const path="/user"

const   Login=async (params)=>{
    return (await HttpPost({url:path+"/login",params})).data
    
}

const Register=async (params)=>{
    return  (await HttpPost ({url:path+"/register",params})).data
}


const Token=async (params)=>{
    return (await HttpPost({url:path+"/token",params}))
}

const Logout=async (params)=>{
    return (await HttpPost({url:path+"/logout",params}))
}

export{
    Login,Register,Token,Logout
}
